<?php
/*
 * templates file
 */

?>
<style>
.items{
	width:100px;
	display:inline;
	float: left; 
	text-align:left;
}
input{
	width:80px;
	border:1px solid blue;
}
</style>
<div>
<div>
Notice:<b>There is a templates example.You can see it when this file is used</b>
</div>
<div id=content>
	<div>DATA:[bookstore]</div>
	<div>
		<div class="items">bookname</div><div class="items">author</div><div class="items">price</div><div class="items">num</div>
	</div>
	<div style="clear:both"></div>
	<?php foreach($this->vo['bookstore'] AS $item):  ?>
	<div>
		<div class="items"><?php echo $item['bookname']; ?></div><div class="items"><?php echo $item['author']; ?></div><div class="items"><?php echo $item['price']; ?>$</div><div class="items"><?php echo $item['num']; ?></div>
	</div>
	<div style="clear:both"></div>
	<?php endforeach;?>
	<div>
	you can add a item:
	</div>
	<div>
		<div class="items">bookname</div><div class="items">author</div><div class="items">price</div><div class="items">num</div>
	</div>
	<div style="clear:both"></div>
	<form method="post" action="/<?php echo $this->vo['DIR']; ?>/index/index/add/">
	<div>
		<div class="items"><input type=text name="bookname"></div><div class="items"><input type=text name="author"></div><div class="items"><input type=text name="price"></div><div class="items"><input type=text name="num"></div><div class="items"><input type=submit name="submit" value="add"></div></div>
	</div>
	</form>
</div>
</div>